package cqrtplm.mapper;

import com.hustcad.plm.pdm.enumeration.model.dto.EnumerationValueDTO;
import cqrtplm.entity.RtCertFiledDO;
import cqrtplm.entity.TyEnumerationdefDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

/**
* @author 博
* @description 针对表【ty_enumerationdef】的数据库操作Mapper
* @createDate 2025-06-05 19:47:06
* @Entity cqrtplm.entity.TyEnumerationdef
*/
@Repository
public interface TyEnumerationdefMapper extends BaseMapper<TyEnumerationdefDO> {

    TyEnumerationdefDO selectByOid(BigInteger defoid);

    String selectDisplayNameByOid(BigInteger defoid);

    List<TyEnumerationdefDO> selectEnumByName(
            @Param("name") String name,
            @Param("description") String description);

    List<EnumerationValueDTO> selectEnumByPid(@Param("pid") BigInteger pid);
}




